package com.wilson.integration.lease.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wilson.integration.lease.common.entity.LeaseAgreement;
import com.wilson.integration.lease.common.entity.vo.agreement.AgreementItemVO;
import com.wilson.integration.lease.common.entity.vo.agreement.AgreementQueryVO;
import com.wilson.integration.lease.common.entity.vo.agreement.AgreementVO;
import com.wilson.integration.lease.common.entity.vo.appointment.AppointmentVO;

import java.util.List;

/**
* @author wilson
* @description 针对表【lease_agreement(租约信息表)】的数据库操作Mapper
* @createDate 2023-07-24 15:48:00
* @Entity com.wilson.integration.lease.entity.LeaseAgreement
*/
public interface LeaseAgreementMapper extends BaseMapper<LeaseAgreement> {

    /**
     * 分页查询预约信息
     *
     * @param page
     * @param queryVO
     * @return
     */
    IPage<AgreementVO> pageAgreementByQuery(IPage<AgreementVO> page, AgreementQueryVO queryVO);

    /**
     * 获取个人租约基本信息列表
     *
     * @param phone
     * @return
     */
    List<AgreementItemVO> listItemByPhone(String phone);
}




